import request from '@/utils/request'
import { timeFormat }  from '@/utils/dateUtil'
const api = {}


// 浏览足迹
api.getBrowse = data => {
    let p = request({
        url:`/log/browseMark/query`,
        method:'get',
        params: data
    })
    
    p = p.then(res=>{
        
        res.data.page.list.forEach(e=>{
          e.addTime = timeFormat(e.addTime)
        })
        return res
      })
      return p
    // return request ({
    //     url:`/log/browseMark/query`,
    //     method:'get',
    //     params: data
    // })
}


// 浏览足迹前二十排行榜
api.getBrowseFootPrint = () => {
    return request ({
        url:`/log/browseMark/getBrowseMarkTwenty`,
        method:'get'
    })
 
    
}




export default api